<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Construction/index')}">项目管理</a></li>
			<li><a href="{:url('Construction/add')}">发起项目</a></li>
		</ul>
        <div>
            <form  class="well form-search" action="{:url('construction/index')}" method="get">
                <label>项目名称: 
                <input type="text" name="pro_name"  class="form-control" placeholder="请输入项目名称" value="{:input('request.pro_name')}" >
                </label>
                <input type="submit" class="btn btn-primary" value="搜索" />
                <a class="btn btn-danger" href="{:url('construction/index')}">清空</a>
            </form>
        </div>
        	<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="left" width="25">项目名称</th>
						<th align="left" width="10%">项目类型</th>
						<th align="left" width="65">具体位置</th>
                        <th align="left" width="35">计划开工时间</th>
						<th align="left" width="35">施工方</th>
						<th align="left" width="35">负责人</th>
                        <th align="left" width="8%">施工负责人</th>
						<th width="8%">表单状态</th>
                        <th width="15">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
                	<foreach name="results" item="vo">
					<tr>
						<td>{$vo.pro_name}</td>
                        <td>
							<if ($vo.pro_type)==1 >类型1
								<elseif ($vo.pro_type)==2 />类型2
									<else/>类型3
							</if>
						</td>
                        <td>{$vo.position}</td>
						<td><php>echo date('Y-m-d', $vo['plan_time'])</php></td>
                        <td>{$vo.construction_side}</td>
                        <td>{$vo.principal}</td>
                        <td>{$vo.construction_peo}</td>
						<td>
							<if ($vo.approval_status)==1><label style="color:#FF0000">待审批</label>
								<elseif ($vo.approval_status)==2/>
									<label style="color:#87CEFA">已同意</label>
									<elseif ($vo.approval_status)==3/>
										<label style="color:#43CD80">已驳回</label>
							</if>
						</td>
						<td>
							<if ($vo.approval_status)==2>
							<a href="{:url('Construction/apply',array('id'=>$vo['id']))}">物料申购</a>
                            |
                            <a href="{:url('Construction/schedule',array('id'=>$vo['id']))}">工程进度</a>
                       		| 
                            <a href="{:url('Construction/accepting',array('id'=>$vo['id']))}">验收竣工</a>
                       		| 
                            <a href="{:url('Construction/weihu',array('id'=>$vo['id']))}">质保维护</a>
							|
							<a href="{:url('Construction/getDetail',array('id'=>$vo['id']))}">查看项目申请</a>
							|
							<a href="{:url('Construction/getMaterielList',array('id'=>$vo['id']))}">物料申购历史</a>
							</if>
							<if ($vo.approval_status)!=2>
								<a href="{:url('Construction/getDetail',array('id'=>$vo['id']))}">查看表单</a>
							</if>
                        </td>
					</tr>
                    </foreach>
				</tbody>
			</table>
		<div class="pagination" style="margin-top: -10px">{$page}</div>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
</body>
</html>